package top.continew.admin.controller.business;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import top.continew.admin.generator.model.req.TaskTodoReq;
import top.continew.admin.generator.service.TaskTodoService;
import top.continew.starter.web.model.R;

import java.util.Arrays;
import java.util.List;

/**
 * 待办事项测试 API
 *
 * @author kellen
 * @since 2025/07/30
 */
@Tag(name = "待办事项测试 API")
@RestController
@RequestMapping("/business/taskTodo")
@RequiredArgsConstructor
public class TaskTodoTestController {

    private final TaskTodoService taskTodoService;


    @Operation(summary = "获取用户列表")
    @GetMapping("/users")
    public R<List<Object>> getUserList() {
        return R.ok(taskTodoService.getUserList());
    }
}